package com.jmx.yp.service.member;

import com.jmx.yp.entity.EmpGrade;
import java.util.*;

/**
 * 
 * 功能描述：
 *			处理会员级别的业务逻辑
 * @author Jenny
 *
 * Date:2011-2-16 下午05:52:44
 */
public interface IGradeService {
	/**
	 * 新增会员级别
	 * @param grade
	 * @throws Exception
	 */
	abstract void addGrade(EmpGrade grade) throws Exception;
	
	/**
	 * 根据会员级别名称及所属类别查询会员级别
	 * @param queryName
	 * @param queryCategoryId
	 * @param nowPage
	 * @return
	 * @throws Exception
	 */
	abstract Map queryGrade(String queryName, Long queryCategoryId, int nowPage) throws Exception;
	
	/**
	 * 根据ID查询会员级别对象
	 * @param serialid
	 * @return
	 * @throws Exception
	 */
	abstract EmpGrade getGrade(Long serialid) throws Exception;
	
	/**
	 * 修改会员级别
	 * @param grade
	 * @throws Exception 当同一类别中有相同会员级别名称时抛出异常
	 */
	abstract void updateGrade(EmpGrade grade) throws Exception;
	
	/**
	 * 删除会员级别
	 * @param gradeIds
	 * @param operator
	 * @throws Exception 当有会员已关联会员级别时，抛异常
	 */
	abstract void deleteGrade(String gradeIds, String operator) throws Exception;
}
